<template>
  <el-button
    type="info"
    icon="Upload"
    size="default"
    @click="click"
    v-hasPermi="perm"
    v-hasRole="role"
    v-hasRoleType="roleType"
    style="background: #20B2AA;border: #20B2AA;"
  >{{ text }}</el-button
  >
</template>

<script>
export default {
  name: 'ImportButton',
  inheritAttrs: false,
  props: {
    text: {
      type: String,
      required: false,
      default: () => '导入'
    },
    perm: {
      type: Array,
      required: false,
      default: () => []
    },
    role: {
      type: Array,
      required: false,
      default: () => []
    },
    roleType: {
      type: Array,
      required: false,
      default: () => []
    }
  },
  methods: {
    click() {
      this.$emit('click')
    }
  }
}
</script>
